<?php
$src = imagecreatefromjpeg('P-1655680-C48F0610.jpg');

$dw = 400;
$dh = 400;
$dst = imagecreatetruecolor($dw,$dh);

imagecopyresampled($dst,$src,0,0,710,50,$dw,$dh,$dw,$dh);

//header('content-type:image/jpeg');
imagejpeg($dst,'face.jpg');
imagedestroy($dst);
imagedestroy($src);
?>
<style>
    .ff{
        padding: 5px;
        border:1px dashed gray;
        border-radius: 50%;
    }
</style>
<img src="face.jpg" class="ff" alt="">
